<link rel="stylesheet" type="text/css" href="|£|$url|\£|/wp-content/plugins/video-wizard/libs/Smarty/templates/css/home_page.css"/>
<link rel="stylesheet" type="text/css" href="|£|$url|\£|/wp-content/plugins/video-wizard/libs/jqueryUI/css/ui-lightness/jquery-ui-1.8.16.custom.css"/>
<script type="text/javascript" src="|£|$url|\£|/wp-content/plugins/video-wizard/libs/jquery/jquery-1.6.2.min.js"></script>
<script type="text/javascript" src="|£|$url|\£|/wp-content/plugins/video-wizard/libs/jqueryUI/js/jquery-ui-1.8.16.custom.min.js"></script>
<script type="text/javascript" src="|£|$url|\£|/wp-content/plugins/video-wizard/js/palinsesto_creation.js"></script>

<form  name="searchVideosPalinsesto" class="floatl">
    <div id="searchBox">
        <div id="searchBar">
            <table id="searchBar_table">
                <tr>
                    <td>
                        Categoria:
                    </td>
                    <td>
                        Pubblicati a partire da:
                    </td>
                    <td>
                        Metatags:
                    </td>
                    <td></td>
                    <td></td>
                </tr>
                <tr>
                    <td>
                        <select name="categorySearch">
                            <option value='' >Tutte le categorie</option>
                            |£|foreach from=$categories item=category|\£|
                                <option value="|£|$category.term_id|\£|">|£|$category.name|\£|</option>
                            |£|/foreach|\£|
                        </select>
                    </td>
                <td>
                        <input id="dateSearch" type="text" name="dateSearch"/>
                        <script>
                            $('#dateSearch').datepicker({
                                dateFormat: 'dd/mm/yy'
                                }
                        );
                        </script>
                </td>
                
                <td>
                    <img width="" height=""/>
                    <input type="text" name="metatagSearch"/>
                </td>
                <td>
                <input onclick="searchVideos('searchResults',true);" type="button" value="Ricerca..."/>
                </td>
                <td class="pageNavTd"><img style="display:none;" class="pageNav" id="prevPagination" onclick="getNextResults('bck','searchResults',true);" src="|£|$url|\£|/wp-content/plugins/video-wizard/libs/Smarty/templates/img/arrowleft.png"/></td>
                <td class="pageNavTd"><img class="pageNav" |£|if $nextPagination != "true"|\£|
                             style="display:none;"
                         |£|/if|\£| id="nextPagination" onclick="getNextResults('fwd','searchResults',true);" src="|£|$url|\£|/wp-content/plugins/video-wizard/libs/Smarty/templates/img/arrowright.png"/></td>
            </tr>
        </table>
        </div>
            <div class="clr"></div>
        </div>
            </form>
            <div class="clr"></div>
        <div id="searchResults">
            <script>
                $("#searchResults").mouseleave(function(){
                    removeButtons();
            });
            </script>
            |£|foreach key=key from=$data item=item|\£|
                |£|if $key%$maxRow==0|\£|<div class="thumbs_tr" >|£|/if|\£|
                    <a href="|£|$url|\£|?p=|£|$item.post_id|\£|"><div vidtitle="|£|$item.title|\£|" onmousemove="appendButtons(this,'vidwiz-thumb|£|$key|\£|');" id="vidwiz-thumb|£|$key|\£|" class="floatl thumbs" style="background-image:url('|£|$item.thumb|replace:".png":"_thumb.png"|\£|');"></div></a>
                |£|if ($key+1)%$maxRow==0|\£|<div class="clr"></div></div>|£|/if|\£|
            |£|/foreach|\£|
            <div class="floatl"></div>
        </div>
            <div class="clr"></div>